<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<!-- .breadcrumb -->
	</div>
	<!-- Main content -->
	<div class="page-content">
    	<div class="row">
    	    <div class="page-header">
    			<h1>合作伙伴</h1>
    		</div>
    		<div class="col-md-12 col-sm-12 col-xs-12 form">
            	<a class="btn btn-info btn-sm" href="<?php echo base_url()."admin/systems/add_partner/"?>"><i class="icon-copy"></i>新增</a>
             
			</div>
            <div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th>ID</th>
                                <th style="width: 30%">名称</th>
                                <th style="width: 10%">佣金比例</th>
                                <th style="width: 20%">创建时间</th>
                                <th style="width: 30%">操作</th>
							</tr>
						</thead> 
						<tbody>
						<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $rs){
                            	?>
							<tr>
                                <td><p><?php echo $rs['id'];?></p></td>
								<td><p><?php echo $rs['name'];?></p></td>
                                <td><p><?php echo $rs['commission_rate']?></p></td>
                                <td><p><?php echo $rs['create_time']?></p></td>
                               
                                <td>

                                <a href="<?php echo base_url().'admin/systems/edit_partner/'.$rs['id']?>" class="btn btn-warning btn-sm"><i class="icon-edit"></i>编辑</a>
                                
                                <a href="<?php echo base_url().'admin/systems/jiesuan_partner/'.$rs['id']?>" class="btn btn-warning btn-sm"><i class="icon-edit"></i>结算</a>
                     			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <a  href="javascript:if(confirm('是否删除该用户')){window.location.href='<?php echo base_url().'admin/systems/del_partner/'.$rs['id'];?>'}" data-toggle="modal" class="btn btn-danger btn-sm"><i class="icon-trash"></i>删除</a>
                                </td>
    						</tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="14">无数据</td>
                            </tr>
                         <?php }?>
                         </tbody>
                     </table>
            	</div><!-- /.table-responsive -->
			</div>
			
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->
